/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.garethc.encapsulation.service.DisplayService;
import za.ac.cput.garethc.encapsulation.service.internal.TextDisplayService;
import za.ac.cput.garethc.inheritance.service.FeedService;
import za.ac.cput.garethc.inheritance.service.internal.WaterFeedService;
import za.ac.cput.garethc.polymorphism.service.AnimalAssignmentService;
import za.ac.cput.garethc.polymorphism.service.impl.AnimalAssignmentServiceImpl;

/**
 *
 * @author Gareth
 */
@Configurable
public class AppConfig {
    
    @Bean (name = "disp1")
    public DisplayService displayServ()
    {
            return new TextDisplayService();
    }
    
    @Bean (name = "feed1")
    public FeedService feedServ()
    {
        return new WaterFeedService();
    }
    
    @Bean (name = "aas1")
    public AnimalAssignmentService aas()
    {
        return new AnimalAssignmentServiceImpl();
    }
}
